﻿{extend name="layout/base" /}
{block name="meta"}
{__block__}
<link rel="stylesheet" type="text/css" href="__ADDON__/__STYLE__/css/owl.carousel.css">
<link rel="stylesheet" type="text/css" href="__ADDON__/__STYLE__/css/owl.theme.css">
<link rel="stylesheet" href="__CDN__/assets/libs/bootstrap-select/dist/css/bootstrap-select.min.css">
<style>
  .box {
    position: relative;
    border-radius: 3px;
    background: #ffffff;
    border-top: 3px solid #d2d6de;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  }

  .box.box-primary {
    border-top-color: #3c8dbc;
  }

  .box.box-info {
    border-top-color: #3498db;
  }

  .box.box-danger {
    border-top-color: #e74c3c;
  }

  .box.box-warning {
    border-top-color: #f39c12;
  }

  .box.box-success {
    border-top-color: #18bc9c;
  }

  .box.box-default {
    border-top-color: #d2d6de;
  }

  .box.collapsed-box .box-body,.box.collapsed-box .box-footer {
    display: none;
  }

  .box .nav-stacked > li {
    border-bottom: 1px solid #f4f4f4;
    margin: 0;
  }

  .box .nav-stacked > li:last-of-type {
    border-bottom: none;
  }

  .box.height-control .box-body {
    max-height: 300px;
    overflow: auto;
  }

  .box .border-right {
    border-right: 1px solid #f4f4f4;
  }

  .box .border-left {
    border-left: 1px solid #f4f4f4;
  }

  .box.box-solid {
    border-top: 0;
  }

  .box.box-solid > .box-header .btn.btn-default {
    background: transparent;
  }

  .box.box-solid > .box-header .btn:hover,.box.box-solid > .box-header a:hover {
    background: rgba(0,0,0,0.1);
  }

  .box.box-solid.box-default {
    border: 1px solid #d2d6de;
  }

  .box.box-solid.box-default > .box-header {
    color: #444;
    background: #d2d6de;
    background-color: #d2d6de;
  }

  .box.box-solid.box-default > .box-header a,.box.box-solid.box-default > .box-header .btn {
    color: #444;
  }

  .box.box-solid.box-primary {
    border: 1px solid #3c8dbc;
  }

  .box.box-solid.box-primary > .box-header {
    color: #fff;
    background: #3c8dbc;
    background-color: #3c8dbc;
  }

  .box.box-solid.box-primary > .box-header a,.box.box-solid.box-primary > .box-header .btn {
    color: #fff;
  }

  .box.box-solid.box-info {
    border: 1px solid #3498db;
  }

  .box.box-solid.box-info > .box-header {
    color: #fff;
    background: #3498db;
    background-color: #3498db;
  }

  .box.box-solid.box-info > .box-header a,.box.box-solid.box-info > .box-header .btn {
    color: #fff;
  }

  .box.box-solid.box-danger {
    border: 1px solid #e74c3c;
  }

  .box.box-solid.box-danger > .box-header {
    color: #fff;
    background: #e74c3c;
    background-color: #e74c3c;
  }

  .box.box-solid.box-danger > .box-header a,.box.box-solid.box-danger > .box-header .btn {
    color: #fff;
  }

  .box.box-solid.box-warning {
    border: 1px solid #f39c12;
  }

  .box.box-solid.box-warning > .box-header {
    color: #fff;
    background: #f39c12;
    background-color: #f39c12;
  }

  .box.box-solid.box-warning > .box-header a,.box.box-solid.box-warning > .box-header .btn {
    color: #fff;
  }

  .box.box-solid.box-success {
    border: 1px solid #18bc9c;
  }

  .box.box-solid.box-success > .box-header {
    color: #fff;
    background: #18bc9c;
    background-color: #18bc9c;
  }

  .box.box-solid.box-success > .box-header a,.box.box-solid.box-success > .box-header .btn {
    color: #fff;
  }

  .box.box-solid > .box-header > .box-tools .btn {
    border: 0;
    box-shadow: none;
  }

  .box.box-solid[class*='bg'] > .box-header {
    color: #fff;
  }

  .box .box-group > .box {
    margin-bottom: 5px;
  }

  .box .knob-label {
    text-align: center;
    color: #333;
    font-weight: 100;
    font-size: 12px;
    margin-bottom: 0.3em;
  }

  .box > .overlay,.overlay-wrapper > .overlay,.box > .loading-img,.overlay-wrapper > .loading-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .box .overlay,.overlay-wrapper .overlay {
    z-index: 50;
    background: rgba(255,255,255,0.7);
    border-radius: 3px;
  }

  .box .overlay > .fa,.overlay-wrapper .overlay > .fa {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -15px;
    margin-top: -15px;
    color: #000;
    font-size: 30px;
  }

  .box .overlay.dark,.overlay-wrapper .overlay.dark {
    background: rgba(0,0,0,0.5);
  }

  .box-header:before,.box-body:before,.box-footer:before,.box-header:after,.box-body:after,.box-footer:after {
    content: " ";
    display: table;
  }

  .box-header:after,.box-body:after,.box-footer:after {
    clear: both;
  }

  .box-header:before,.box-body:before,.box-footer:before,.box-header:after,.box-body:after,.box-footer:after {
    content: " ";
    display: table;
  }

  .box-header:after,.box-body:after,.box-footer:after {
    clear: both;
  }

  .box-header {
    color: #444;
    display: block;
    padding: 10px;
    position: relative;
  }

  .box-header.with-border {
    border-bottom: 1px solid #f4f4f4;
  }

  .collapsed-box .box-header.with-border {
    border-bottom: none;
  }

  .box-header > .fa,.box-header > .glyphicon,.box-header > .ion,.box-header .box-title {
    display: inline-block;
    font-size: 18px;
    margin: 0;
    line-height: 1;
  }

  .box-header > .fa,.box-header > .glyphicon,.box-header > .ion {
    margin-right: 5px;
  }

  .box-header > .box-tools {
    position: absolute;
    right: 10px;
    top: 5px;
  }

  .box-header > .box-tools [data-toggle="tooltip"] {
    position: relative;
  }

  .box-header > .box-tools.pull-right .dropdown-menu {
    right: 0;
    left: auto;
  }

  .btn-box-tool {
    padding: 5px;
    font-size: 12px;
    background: transparent;
    color: #97a0b3;
  }

  .open .btn-box-tool,.btn-box-tool:hover {
    color: #606c84;
  }

  .btn-box-tool.btn:active {
    box-shadow: none;
  }

  .box-body {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    padding: 10px;
  }

  .no-header .box-body {
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
  }

  .box-body > .table {
    margin-bottom: 0;
  }

  .box-body .fc {
    margin-top: 5px;
  }

  .box-body .full-width-chart {
    margin: -19px;
  }

  .box-body.no-padding .full-width-chart {
    margin: -9px;
  }

  .box-body .box-pane {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 3px;
  }

  .box-body .box-pane-right {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 0;
  }

  .box-footer {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    border-top: 1px solid #f4f4f4;
    padding: 10px;
    background-color: #fff;
  }


</style>
{/block}

{block name="body"}
<body class="shop_grid_page">
{/block}

{block name="main"}
<!-- Breadcrumbs -->
  <div class="breadcrumbs">
    <div class="container">
      <div class="row">
        <div class="col-xs-12">
          <ul>
            <li class="home"> <a title="{:__('Home')}" href="{:addon_url('mall')}">{:__('Home')}</a><span>&raquo;</span></li>
            <li class=""> <a title="{:__('Shop List')}" href="{:addon_url('mall/shop/index')}">{:__('Shop')}</a><span>&raquo;</span></li>
            <li><strong>{:__('Detail')}</strong></li>
          </ul>
        </div>
      </div>
    </div>
  </div>
  <!-- Breadcrumbs End --> 

  <!-- Main Container -->
  <div class="main-container col2-left-layout">
    <div class="container">
      <div class="row">
        <div class="col-main col-sm-9 col-xs-12 col-sm-push-3">

          <!-- ads -->
          {if($data['shop']['ads'])}
          <div class="category-description std">
            <div class="slider-items-products">
              <div id="category-desc-slider" class="product-flexslider hidden-buttons">
                <div class="slider-items slider-width-col1 owl-carousel owl-theme">

                  {volist name="$data['shop']['ads']" id="ads"}
                  <div class="item">
                    <a {if ($ads['isOpen'])}target='_blank'{/if}  href="{$ads['adUrl']}" >
                    <img alt="" src="__MALLCDN__{$ads['adImg']}">
                    </a>
                  </div>
                  {/volist}

                </div>
              </div>
            </div>
          </div>
          {/if}
          <!-- end ads -->

          {if $__FILTERLIST__}
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">
                筛选
              </h3>
            </div>
            <div class="panel-body">
              <div class="tabs-wrapper">
                {mall:pagefilter id="filter" exclude=""}
                <div class="tabs-group">
                  <div class="title">{$filter.title}:</div>
                  <ul class="content clearfix">
                    {volist name="$filter.content" id="item"}
                    <li class="note-style {$item.active?'active':''}"><a href="{$item.url}">{$item.title}</a></li>
                    {/volist}
                  </ul>
                </div>
                {/mall:pagefilter}
                <!-- E 分类列表 -->
              </div>
            </div>
          </div>
          {/if}

          <div class="shop-inner">
            <div class="toolbar">
              <div class="view-mode">
                <ul>
                  <li class="active"> <a href="detail.html"> <i class="fa fa-th-large"></i> </a> </li>
                  <li> <a href="{:addon_url('mall/shop/index')}"> <i class="fa fa-th-list"></i> </a> </li>
                </ul>
              </div>
              <div class="sorter">
                <div class="short-by">
                  <div class="sorter">
                    <div class="short-by">
                      <ul class="list-unstyled list-inline category-order clearfix">
                        <!-- S 排序 -->
                        {mall:pageorder id="order"}
                        <li class="{$order.active?'active':''}"><a href="{$order.url}">{$order.title}</a></li>
                        {/mall:pageorder}
                        <!-- E 排序 -->
                      </ul>
                    </div>
                  </div>
                </div>
                <div class="short-by page">
                  <label>{:__("Pagesize")}:</label>
                  <select id="pagesize" name="pagesize" onchange="changeUrlParam(this.options[this.options.selectedIndex].value,this.name)">
                    <option value="8" {if $pagesize == 8}selected{/if}>8</option>
                    <option value="16" {if $pagesize == 16}selected{/if}>16</option>
                    <option value="32" {if $pagesize == 32}selected{/if}>32</option>
                    <option value="64" {if $pagesize == 64}selected{/if}>64</option>
                  </select>
                </div>
              </div>
            </div>
            <div class="product-grid-area">
              <ul class="products-grid">
                {mall:pagelist id='vo'}
                <li class="item col-lg-3 col-md-4 col-sm-6 col-xs-6 ">
                  {include file="layout/item"}
                </li>
                {/mall:pagelist}
              </ul>
            </div>
            <div class="pagination-area ">
              {mall:pageinfo type="full" /}
            </div>
          </div>
        </div>
        <aside class="sidebar col-sm-3 col-xs-12 col-sm-pull-9">
          {if(strlen($data['shop']['shopNotice'])>0)}
          <div class="block">
            <div class="sidebar-bar-title">
              <h3>{:__("Notice")}</h3>
            </div>
            <div class="std">
              {$data['shop']['shopNotice']}
            </div>
          </div>
          {/if}
          <div class="block shop-by-side">
            <div class="sidebar-bar-title">
              <h3>{:__("Shopcategories")}</h3>
            </div>
            <div class="block-content">
              <div class="panel-body">
                <span class="text-muted hidden"><input type="checkbox" name="" id="checkall"/> <label for="checkall"><small>{:__('Check all')}</small></label></span>
                <span class="text-muted"><input type="checkbox" name="" id="expandall"/> <label for="expandall"><small>{:__('Expand all')}</small></label></span>
                <div id="channeltree">
                </div>
              </div>
            </div>
          </div>
          {include file="layout/sidebar"}
        </aside>
      </div>
    </div>
  </div>
  <!-- Main Container End -->

    {/block}
{block name="js"}
{__block__}
<script type="text/javascript" src="__ADDON__/__STYLE__/js/owl.carousel.min.js"></script>
<script type="text/javascript" src="__ADDON__/__STYLE__/js/main.js"></script>
{/block}